#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <json/json.h>
#include <json/json_util.h>

#include "read_json_db.h"

int main( int argc, char **argv )
{
	
	db_db *db;
	db = open_json_db( "./conf/hausers.json" );
	if ( db==NULL ) printf("Cannot open db\n");
	db_user *user;
	get_user( db, "fam", &user );

	//add_user( db, "Hoho", "HOHO", "hoho" );
	close_json_db( db );

	printf("[%s] [%s] [%s]\n", user->name, user->password, user->seed );
	clean_user( user );
	return 0;
}
